package Database;

import java.util.List;

/**
 * 测试Database类
 */
public class Test {

    public static void main(String[] args) {

        List<String> emails = DBService.getEmails();
        for(String email : emails){
            System.out.println(email);
        }

        List<String> names = DBService.getNames();
        for(String name : names){
            System.out.println(name);
        }

        String name = DBService.getNameByEmail("orangevsky@sina.com");
        System.out.println(name);

    }

}
